//
//  AppDelegate.h
//  spotrs
//
//  Created by xu on 16/5/10.
//  Copyright © 2016年 TZ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UIViewController *viewController;
@property (strong, nonatomic) RDVTabBarController *tabBarController;
@property (strong, nonatomic) UINavigationController *mainNavigation;
@property (strong, nonatomic) UILabel * titleLabel;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//push
-(void)pushController:(UIViewController*)viewController;
//返回之前的控制器
-(void)popController;
- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;


@end

